<%-- 
    Document   : showquiz
    Created on : Oct 12, 2009, 3:49:35 PM
    Author     : balbir kaur
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>CS1.6 Quiz</title>
        <style type="text/css">@import url(../include/quiz.css); </style>
    </head>
    <body>
        <s:include value="/include/header.html"/>
        <div id="allcontent">
            <div id="leftsidebar">
                
                <br/><br/>
                <img alt="mav" src="../include/cswalls/mav.jpg" align="center" width="200"/><br/><br/><br/><br/>
                <img alt="csmatrix.jpg" src="../include/cswalls/csmatrix.jpg" align="center" width="200"/><br/><br/><br/><br/>
                <img alt="csv1.jpg" src="../include/cswalls/csv1.jpg" align="center" width="200" /><br/><br/><br/><br/>
            </div>
                <s:set name="selectedQuestions" scope="session" value="%{selectedQuestions}"/>
                <s:set name="correctAnswers" scope="session" value="%{correctAnswers}"/>
                <div id="main">
                <h2> Take The Quiz ! </h2>
                <s:form theme="simple" action="showResult.action" name="answers">
                    <br/>
                    <s:iterator id="key" value="selectedQuestions.keySet()" status="itstatus">
                    <br/>
                    <fieldset>
                        <legend>
                            <em> <s:property value="#key"/> ? </em>
                        </legend>  <br/>
                        <s:iterator id="vals" value="selectedQuestions[#key]">
                            <input type="radio" name="name[<s:property value='#itstatus.count'/>]" class="myclass" value="<s:property value='#vals'/>"><s:property value='#vals'/><br/>
                         </s:iterator>
                    </fieldset>
                    <br/>
                </s:iterator><br/>
               
                <br/>
                <br/>
                <div align="center">
                <s:submit label="Check Score" value="Check Score" align="middle"/></div>
            </s:form>
        </div>
    </div>
    <s:include value="/include/footer.jsp"/>


</body>
</html>
